package com.lagou.client;

import com.lagou.api.IUserService;
import com.lagou.client.invoke.RpcConsumer;

/**
 * @author Kirito
 * @description:
 * @date 2020/05/26
 */
public class ClientBootstrap {
    public static void main(String[] args) {
        RpcConsumer consumer = new RpcConsumer();
        IUserService userService = (IUserService) consumer.createProxy(IUserService.class, "findById");
        String result = userService.findById(1);
        System.out.println("Receive " + result + " from Netty Server.");
    }
}
